package genetic.q1.functions.sumlist.statements;

import genetic.q1.WithallPhenotype;
import genetic.q1.functions.Program;
import genetic.q1.functions.ProgramObject;
import genetic.q1.functions.Statement;

public class Null extends Statement {

	public Null() {
		super("Null", new ProgramObject[0]);
	}

	@Override
	public Statement CreateInstance(ProgramObject[] evals) {
		return new Null();
	}

	@Override
	public ProgramObject choose(int j, int i, WithallPhenotype withallPhenotype) {
		return null;
	}

	@Override
	public int execute(Program program) {
		return program.getCounter() + 1;
	}
	
	@Override
	public String getObjectName() {
		return "//null";
	}

	@Override
	public int getNumVars() {
		return 0;
	}
	
	@Override
	public String toString() {
		return "// null";
	}
}
